{extend name="public:base" /}
{block name="head"}
<link href="__PUBLIC__/view_res/mobile/css/wshop_company_center.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/jquery-weui/dist/lib/weui.min.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/jquery-weui/dist/css/jquery-weui.min.css" type="text/css" rel="Stylesheet" />
<script src="__PUBLIC__/jquery-weui/dist/js/jquery-weui.min.js"></script>

{/block} 
{block name="header"}
{include file="public/top-nav" /}
{/block}

{block name="content"}
<form id="login-wrap">
    <header class="Thead">转让</header>
    {:token()}
    <div style="margin:0 10px;">
        <div class="gs-text">
            <input type="text" name="mobile" value=""  tabindex="2" placeholder="对方手机号码" />
            
        </div>

    </div>
    <div style="margin:0 10px;">
        <div class="gs-text">
            <input type="number" name="num" value=""  tabindex="2" placeholder="请输入通证数量" />
        </div>
    </div>
    <div style="margin:0 10px;">
        <div class="gs-text">
            <input type="password" name="pwd2" value=""  tabindex="2" placeholder="请输入二级密码" />
        </div>
    </div>

<a class="button danger" href="javascript:;" id="reg-btn">确认提交</a>

<style>
    body {
        background : none;
    }
/*.user{
    position: relative;
    color: #444;
    padding-left: 20px;
    line-height: 30px;
    font-size: 14px;

    border-bottom: 1px solid #eee;
    background: url(../images/icon_bar-right.png) 97.5% center no-repeat #fefefe;
    background-size: 15px 16px;
    display: block;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}*/
table tr{

    position: relative;
    color: #444;
    padding-left: 50px;
    line-height: 40px;
    font-size: 14px;
    background: url(../images/icon_bar-right.png) 97.5% center no-repeat #fefefe;

}
td{padding-left: 18px;}
</style>

<!-- <div style="width: 100%;">
	<img src="__PUBLIC__/view_res/mobile/images/geren.png" alt="" width="10%" height="10%" style="float: left;">
	<strong style="font-size: 18px; display: block; float: left; line-height: 40px;">个人资料</strong>
</div> -->

<header class="Thead">历史记录</header>
<div id="ulist">            
{volist name="list" id="p"}            
    <section class="ulist clearfix">
        <div>
			{if condition="$p.username eq $user"}
            {$p.mobile} <span style="padding:0 8px;"></span>
            {$p.nickname} <span style="padding:0 8px;"></span>
            {else}
            {$p.username} <span style="padding:0 8px;"></span>
            {:get_username_nickname($p.username)} <span style="padding:0 8px;"></span>
            {/if}
            {$p.num} <span style="padding:0 8px;"></span>
            {$p.dt} <span style="padding:0 8px;"></span>
            {if condition="$p.username eq $user"}
            转出 <span style="padding:0 8px;"></span>
            {else}
            转入 <span style="padding:0 8px;"></span>
            {/if}
        </div>                     
    </section>
{/volist}
</div>
{/block}

{block name="script"}
<script>

/*
$('#reg-btn').click(function(){
	$.post(
		
		'{:url("predeposit/usertf")}',	
		
		$('input[type="text"],input[type="password"],input[type="number"],input[type="hidden"]'),
		function(d){
			//alert(d.success);
			if(d.error){
				$.toast(d.error, "forbidden");
			}else if(d.success){
				$.toast(d.success);
				
				setTimeout(function (){
			      history.go("/mobile/predeposit/usertf");
			    },2000);
			}
		}
	);
});
*/
$('#reg-btn').click(function()
{
    //var st="";

    $.post(
        
        '{:url("predeposit/getUserinfo")}',  
        
        $('input[type="text"],input[type="password"],input[type="number"],input[type="hidden"]'),
        function(d){
            //alert(d.success);
            //st = d;
            var str = d;
            var str = "请确认是否转给:"+str;
            var r=confirm(str);
            if (r==true)
            {
                $.post(
                
                '{:url("predeposit/usertf")}',  
                
                $('input[type="text"],input[type="password"],input[type="number"],input[type="hidden"]'),
                function(d){
                    //alert(d.success);
                    if(d.error){
                        $.toast(d.error, "forbidden");
                    }else if(d.success){
                        $.toast(d.success);
                        
                        setTimeout(function (){
                          history.go("/mobile/predeposit/usertf");
                        },2000);
                    }
                }
            );
            }
          else
            {
                
            }
            
        }
    )
  //alert(ret);
  //alert(st);
  /*
  var obj = JSON.parse(ret);
  var str = "确认是否转给："+obj.nickname+" "+obj.username;
  alert(str);
  var r=confirm(str);
  */
  /*
  if (r==true)
    {
        $.post(
        
        '{:url("predeposit/usertf")}',  
        
        $('input[type="text"],input[type="password"],input[type="number"],input[type="hidden"]'),
        function(d){
            //alert(d.success);
            if(d.error){
                $.toast(d.error, "forbidden");
            }else if(d.success){
                $.toast(d.success);
                
                setTimeout(function (){
                  history.go("/mobile/predeposit/usertf");
                },2000);
            }
        }
    );
    }
  else
    {
        
    }*/
  })

</script>
{/block}